layui.use(['table','form'], function() {
    table = layui.table;
    form = layui.form;
    form.on('submit(formDemo)', function (data) {
        console.log(data); //开关value值，也可以通过data.elem.value得到
        $.ajax({
            url: "/curriculum/intermediate/auditDetails",
            dataType: 'json',
            type: 'post',
            data: data.field,
            success: function (res) {
                parent.refresh();
                parent.log("审核")
                var index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index);
            },
            errorfun: function () {

            }
        });
    });

});
$("#cancel").click(function (){
    var index = parent.layer.getFrameIndex(window.name);
    parent.layer.close(index);
    }
)